#include "chain.h"

int main(){
    
    ClassTeacher* teacher = new ClassTeacher();

    DepartmentLeader* departLeader = new DepartmentLeader();
    teacher->setNext(departLeader);
    VicePrincipal* viceP = new VicePrincipal();
    departLeader->setNext(viceP);
    Principal* p = new Principal();
    viceP->setNext(p);
    Request request("张三",5);
    Request request1("李四",15);
    teacher->handle(request);
    teacher->handle(request1);

    return 0;
}